package com.wxw.gulidemo.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author by xxz
 * @date 2022/6/21
 */
@Component
@FeignClient(value = "service-order",fallback = OrderClientImpl.class)
public interface OrderClient {

    //根据【用户id、课程id】查询订单表中的状态 --- 1为已支付
    @PostMapping("/eduOrder/t-order/isBuyCourse/{memberId}/{courseId}")
    boolean isBuyCourse(@PathVariable("memberId") String memberId, @PathVariable("courseId") String courseId);

}
